package god;

import java.util.Scanner;

public class Ch04Ex05Scanner {
	private static String operator;
	private static  double a;
	private  static double b;

	public static double getA() { return a; }
	public static void setA( double a)  { Ch04Ex05Scanner.a = a; }
	
	public static double getB() { return b; }
	public static void setB( double b ) { Ch04Ex05Scanner.b = b; }
	
	public static String getOperator() { return operator; }
	public static void setOperator(String operator) { Ch04Ex05Scanner.operator = operator; }

	public static Scanner makeScanner() {
		Scanner sc = new Scanner(System.in);
		return sc;
	}

	public static void closeScanner(Scanner sc) {
		sc.close();
	}
	
	public static void setvalue( Scanner sc ) {
		a = sc.nextInt();
		b = sc.nextInt();
		operator = sc.next();
		closeScanner(sc);
	}
}
